<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/dict" prefix="dict" %>
	<form id="input" class="form-horizontal" method="post" action="editUserMsg?userID=${user.userID }" >
		<jsp:include page="uploadImg.jsp"/>
		<div class="form-group">
			<label for="userid" class="col-md-2 control-label"><s:text name="user.login.userName"/></label>
			<div class="col-md-10">
				<input type="text" disabled="disabled" class="form-control" id="userName" value="${user.userName }" placeholder="用户名" name="userName" required aria-required="true">
			</div>
		</div>
		
		
		<div class="form-group">
			<label class="col-sm-2 control-label"><s:text name="user.userManager.nickname"/></label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="nickname" placeholder="<s:text name="user.userManager.nickname"/>" value="${user.nickname }" name="nickname" required aria-required="true">
	         </div>
		</div>
		
		<div class="form-group">
			<label class="col-sm-2 control-label"><s:text name="user.userManager.sex"/></label>
			<div class="col-sm-10">
				<dict:dict attrName="sex" code="${user.sex }" enumword="sex" cssClass="form-control" language="${language}"/>
	         </div>
		</div>
		
		<div class="form-group">
			<label class="col-sm-2 control-label"><s:text name="user.userManager.email"/></label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${user.email }" id="email" placeholder="<s:text name="user.userManager.email"/>" name="email" required aria-required="true">
	         </div>
		</div>
		
		<div class="form-group">
			<label class="col-sm-2 control-label"><s:text name="user.userManager.phone"/></label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${user.phone }" id="phone" placeholder="<s:text name="user.userManager.phone"/>" name="phone" required aria-required="true">
	         </div>
		</div>
		
		<div class="form-group">
			<label class="col-sm-2 control-label"><s:text name="user.userManager.usertype"/></label>
			<div class="col-sm-10">
				<dict:dict attrName="roleID" code="${user.roleID }" enumword="usertype" cssClass="form-control" language="${language}"/>
	         </div>
		</div>
		
		
		<div class="form-group">
	       <div class="col-md-5 col-md-offset-2 control-label">
	         	<button type="button" class="btn btn-warning" onClick="ajaxContent('getAllUsers')"><s:text name="common.return"/></button>
	         	<button type="button" class="btn btn-primary" onclick="ajaxForm('content','input','aaa')"><s:text name="common.save"/></button>
	       </div>
       </div>
	</form>
